package com.aihna.common.pay.domain.bo;

import com.aihna.common.core.validate.AddGroup;
import com.aihna.common.core.validate.EditGroup;
import com.aihna.common.mybatis.core.domain.BaseEntity;
import com.aihna.common.pay.domain.SysPaymentApp;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 支付应用业务对象 sys_payment_app
 *
 * @author Joseph.Chen
 * @date 2024-03-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysPaymentApp.class, reverseConvertGenerate = false)
public class SysPaymentAppBo extends BaseEntity {

    /**
     * 支付应用id
     */
    @NotNull(message = "支付应用id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 应用名
     */
    @NotBlank(message = "应用名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 支付结果的回调地址
     */
    private String orderNotifyUrl;

    /**
     * 退款结果的回调地址
     */
    private String refundNotifyUrl;

    /**
     * 转账结果的回调地址
     */
    private String transferNotifyUrl;

    /**
     * 1为正常，0为禁止
     */
    private Integer status;

    /**
     * 说明
     */
    private String description;


}
